
import React, { useRef } from 'react'
import MyProvider from "./components/context/MyProvider"
import MsgBox from "./components/context/MsgBox"

function App() {
  const userRef = useRef()

  return (
    <div className="App" id="box1">
      <MyProvider>
        {/* props的默认值，children */}
        <MsgBox></MsgBox>
      </MyProvider>
    </div>
  );
}

export default App;

